﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreateOrg.ascx.cs" Inherits="Team4Mock.UserControl.Organisation.CreateOrg" %>
<script type="text/javascript">
    function getContactID() {
        var s = document.getElementById('id').value;
        if (s != "") {
            document.getElementById('<%=idContact.ClientID%>').value = s;
        }

        var b = document.getElementById('idBus').value;
        if (b != "") {
            document.getElementById('<%=hdidBus.ClientID%>').value = b;
        }
        var p = document.getElementById('txtPostCode').value;
        if (p != "") {
            document.getElementById('<%=PostCode.ClientID%>').value = p;
        }
        var t = document.getElementById('txtTown').value;
        if (t != "") {
            document.getElementById('<%=Town.ClientID%>').value = t;
        }
        var c = document.getElementById('txtCounty').value;
        if (c != "") {
            document.getElementById('<%=County.ClientID%>').value = c;
        }
        var sic = document.getElementById('txtSICCode').value;
        if (sic != "") {
            document.getElementById('<%=hdsic.ClientID%>').value = sic;
        }
    }
</script>
<div style="width: 760px;">
    <h3>
        Organisation Details</h3>
    <ul class="tabs" style="width: 760px; float: left;">
        <li><a href="#Create1" class="active tab">Details1</a></li>
        <li><a href="#Create2" class="tab">Details2</a></li>
        <%--<li><a href="#Create3" class="tab">Details3</a></li>--%>
    </ul>
    <br />
    <div class="tab_container">
        <div id="Create1" class="tab_content">
            <table width="760px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
                <tr>
                    <td class="style5">
                        Organisation Name <span style="color: Red;">(*)</span>
                    </td>
                    <td class="style9">
                        <asp:TextBox ID="txtOrgName" runat="server" Width="186px"></asp:TextBox>
                    </td>
                    <td class="style11">
                        Preferred Organisation
                    </td>
                    <td class="style6">
                        <asp:CheckBox ID="ckPreferred" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td rowspan="2" class="style16">
                        Organisation Short Description <span style="color: Red;">(*)</span>
                    </td>
                    <td rowspan="2" class="style13">
                        <asp:TextBox ID="txtShortDes" runat="server" TextMode="MultiLine" Height="63px" Width="186px"
                            Style="margin-left: 0px"></asp:TextBox>
                    </td>
                    <td class="style15">
                        Expression of interest
                    </td>
                    <td>
                        <asp:CheckBox ID="ckExpress" runat="server"/>
                    </td>
                </tr>
                <tr>
                    <td class="style15">
                        Type of Business <span style="color: Red;">(*)</span>
                    </td>
                    <td>
                        <input type="text" id="txtBusID" readonly="readonly" />
                        &nbsp;&nbsp;<a href="#" onclick="PopupBusiness();return false;">Lookup</a>
                    </td>
                </tr>
                <tr>
                    <td class="style16">
                        Lead Contact
                    </td>
                    <td class="style13">
                        <input type="text" id="Name" readonly="readonly" style="width: 104px" />
                        <input type="hidden" id="id" />
                        &nbsp;&nbsp; <a href="#" onclick="PopupContact();return false;">Lookup</a>
                        <asp:HiddenField ID="idContact" runat="server" />
                    </td>
                    <td class="style15">
                        SIC Code
                    </td>
                    <td>
                        <input type="text" id="txtSICCode" readonly="readonly" style="width: 176px;">
                        <input type="hidden" id="idBus">
                        <asp:HiddenField ID="hdidBus" runat="server" />
                        <asp:HiddenField ID="hdsic" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Address Line 1 <span style="color: Red; text-decoration: blink;">(*)</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtAdd1" runat="server" Width="186px"></asp:TextBox>
                    </td>
                    <td>
                        Description Full
                    </td>
                    <td>
                        <asp:TextBox ID="txtFullDess" runat="server" Height="32px" Width="176px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Address Line 2
                    </td>
                    <td>
                        <asp:TextBox ID="txtAdd2" runat="server" Width="186px"></asp:TextBox>
                    </td>
                    <td>
                        Phone Number <span style="color: Red;">(*)</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPhone" runat="server" Width="176px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Address Line 3
                    </td>
                    <td>
                        <asp:TextBox ID="txtAdd3" runat="server" Width="186px"></asp:TextBox>
                    </td>
                    <td>
                        Fax
                    </td>
                    <td>
                        <asp:TextBox ID="txtFax" runat="server" Width="176px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Post Code <span style="color: Red;">(*)</span>
                    </td>
                    <td>
                        <input type="text" id="txtPostCode" style="width: 117px;" readonly="readonly" />
                        &nbsp;&nbsp;<a href="#" onclick="PopupAddress();return false;">Lookup</a>
                        <asp:HiddenField ID="PostCode" runat="server" />
                    </td>
                    <td>
                        Email
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="176px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        City/Town
                    </td>
                    <td>
                        <input type="text" id="txtTown" style="width: 186px;" />
                        <asp:HiddenField ID="Town" runat="server" />
                    </td>
                    <td>
                        Web Address
                    </td>
                    <td>
                        <asp:TextBox ID="txtWeb" runat="server" Width="176px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        County
                    </td>
                    <td>
                        <input type="text" id="txtCounty" style="width: 186px;" />
                        <asp:HiddenField ID="County" runat="server" />
                    </td>
                    <td>
                        Charity Number
                    </td>
                    <td>
                        <asp:TextBox ID="txtCharity" runat="server" Width="176px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Nation/Country
                    </td>
                    <td>
                        <asp:DropDownList ID="dlNational" AutoPostBack="false" DataTextField="CountryName"
                            DataValueField="CountryName" runat="server" Width="186px">
                        </asp:DropDownList>
                    </td>
                    <td>
                        Company Number
                    </td>
                    <td>
                        <asp:TextBox ID="txtCompany" runat="server" Width="176px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="Label1" Style="margin-left: 10px; margin-top: 10px; font-style: italic;"
                            runat="server"></asp:Label><br />
                            <asp:RequiredFieldValidator ID="rporgName" runat="server" ControlToValidate="txtOrgName" Text="Please input the Organisation name"></asp:RequiredFieldValidator>
                            <br /><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtShortDes" Text="Please input the Short Description"></asp:RequiredFieldValidator>
                            <br /><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtAdd1" Text="Please input the Address Line 1"></asp:RequiredFieldValidator>
                            <br /><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPhone" Text="Please input the Phone number"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="tab_container">
        <div id="Create2" class="tab_content">
            <table width="760px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
                <tr>
                    <td width="200px" style="border-bottom: 1px solid #cccccc;">
                        Organisation Specicalism
                    </td>
                    <td style="border-bottom: 1px solid #cccccc; width: 190px; height: 100px;">
                        <asp:Repeater runat="server" ID="rpOrgSpec">
                            <ItemTemplate>
                                <asp:TextBox Visible="false" runat="server" ID="txtidSpec" Text='<%#Eval("RefId") %>'></asp:TextBox>
                                <asp:CheckBox runat="server" ID="ckSpec" Text='<%#Eval("RefName") %>' /><br />
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                    <td width="180px" style="border-bottom: 1px solid #cccccc;">
                        Service Personal Circumstances Capabilities
                    </td>
                    <td style="border-bottom: 1px solid #cccccc; width: 190px; height: 100px;">
                        <asp:Repeater runat="server" ID="rpSerPerCap">
                            <ItemTemplate>
                                <asp:TextBox Visible="false" runat="server" ID="txtidPer" Text='<%#Eval("RefId") %>'></asp:TextBox>
                                <asp:CheckBox runat="server" ID="ckPer" Text='<%#Eval("RefName") %>' /><br />
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                </tr>
                <tr>
                    <td width="200px" style="border-bottom: 1px solid #cccccc;">
                        Service Disablities Capabilites
                    </td>
                    <td style="border-bottom: 1px solid #cccccc; width: 190px; height: 100px;">
                        <asp:Repeater runat="server" ID="rpSerDisCap">
                            <ItemTemplate>
                                <asp:TextBox Visible="false" runat="server" ID="txtidDis" Text='<%#Eval("RefId") %>'></asp:TextBox>
                                <asp:CheckBox runat="server" ID="ckDis" Text='<%#Eval("RefName") %>' /><br />
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                    <td width="180px" style="border-bottom: 1px solid #cccccc;">
                        Service Ethnicity Capabilities
                    </td>
                    <td style="border-bottom: 1px solid #cccccc; width: 190px; height: 100px;">
                        <asp:Repeater runat="server" ID="rpSerEth">
                            <ItemTemplate>
                                <asp:TextBox Visible="false" runat="server" ID="txtidEth" Text='<%#Eval("RefId") %>'></asp:TextBox>
                                <asp:CheckBox runat="server" ID="ckEth" Text='<%#Eval("RefName") %>' /><br />
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                </tr>
                <tr>
                    <td width="200px" style="border-bottom: 1px solid #cccccc;">
                        Service Barriers Capabilities
                    </td>
                    <td style="border-bottom: 1px solid #cccccc; width: 190px; height: 100px;">
                        <asp:Repeater runat="server" ID="rpSerBarr">
                            <ItemTemplate>
                                <asp:TextBox Visible="false" runat="server" ID="txtidBarr" Text='<%#Eval("RefId") %>'></asp:TextBox>
                                <asp:CheckBox runat="server" ID="ckBarr" Text='<%#Eval("RefName") %>' /><br />
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                    <td width="180px" style="border-bottom: 1px solid #cccccc;">
                        Accreditation
                    </td>
                    <td style="border-bottom: 1px solid #cccccc; width: 190px; height: 100px;">
                        <asp:Repeater runat="server" ID="rpAcc">
                            <ItemTemplate>
                                <asp:TextBox Visible="false" runat="server" ID="txtidAcc" Text='<%#Eval("RefId") %>'></asp:TextBox>
                                <asp:CheckBox runat="server" ID="ckAcc" Text='<%#Eval("RefName") %>' /><br />
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                </tr>
                <tr>
                    <td width="200px"  style="border-bottom: 1px solid #cccccc;">
                        Service Benefits Capabilities
                    </td>
                    <td style="border-bottom: 1px solid #cccccc; width: 190px; height: 100px;">
                        <asp:Repeater runat="server" ID="rpBene">
                            <ItemTemplate>
                                <asp:TextBox Visible="false" runat="server" ID="txtidBene" Text='<%#Eval("RefId") %>'></asp:TextBox>
                                <asp:CheckBox runat="server" ID="ckBene" Text='<%#Eval("RefName") %>' /><br />
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                    <td style="border-bottom: 1px solid #cccccc;">
                    </td>
                    <td style="border-bottom: 1px solid #cccccc;"></td>
                </tr>
            </table>
        </div>
    </div>
    <div class="tab_container">
        <div id="Create3" class="tab_content">
            <table width="760px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
                <tr>
                    <td width="200px" style="border-bottom: 1px solid #cccccc;">
                        EOI Programmes
                    </td>
                    <td style="border-bottom: 1px solid #cccccc;">
                        <asp:CheckBoxList ID="cklEOIPro" runat="server" Width="190px" Height="100px">
                            <asp:ListItem>Programme 1</asp:ListItem>
                            <asp:ListItem>Programme 1</asp:ListItem>
                            <asp:ListItem>Programme 1</asp:ListItem>
                            <asp:ListItem>Programme 1</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td width="180px" style="border-bottom: 1px solid #cccccc;">
                        EOI Service
                    </td>
                    <td style="border-bottom: 1px solid #cccccc;">
                        <asp:CheckBoxList ID="cklEOISer" runat="server" Width="154px" Height="100px">
                            <asp:ListItem>Service 1</asp:ListItem>
                            <asp:ListItem>Service 1</asp:ListItem>
                            <asp:ListItem>Service 1</asp:ListItem>
                            <asp:ListItem>Service 1</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                    
                </tr>
            </table>
        </div>
    </div>
</div>
<asp:Button ID="btnCreate1" runat="server" Text="Save" CssClass="button" OnClientClick="getContactID()"
    OnClick="btnCreate1_Click" />
<asp:Button ID="btnBack1" runat="server" Text="Back" CssClass="button" OnClick="btnBack1_Click" /><br />
<asp:Label runat="server" ID="lb"></asp:Label>